Skip to content

feat(ui): inline floating input for Other option - #455

Merged
sudo-tee merged 2 commits into
mainfrom
feat/inline-answer
Jul 9, 2026
Merged

feat(ui): inline floating input for Other option#455
sudo-tee merged 2 commits into
mainfrom
feat/inline-answer

Conversation

@sudo-tee

@sudo-tee sudo-tee commented Jul 8, 2026

Copy link
Copy Markdown
Owner

This PR introduce an inline input for answering the Other question inline.

image

@jensenojs

If you have a minute. I'd like your input (pun intended 😅) on this.

Does it work for you, do you think it's a proper implementation that we can use for the Permission Deny

@sudo-tee

sudo-tee commented Jul 8, 2026

Copy link
Copy Markdown
Owner Author

This can help with #451

@jensenojs

Copy link
Copy Markdown
Collaborator

It looks great! I'll give it a try in about an hour or two.

@jensenojs

jensenojs commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator
图片

I really like it! But I'm not sure if this is related to this PR, but is our original interaction logic for multi-selection similar to the TUI? It seems that directly confirms the selection?


and WinLeave drops typed input on any focus loss, my agent said that root cause is using WinLeave as cancel trigger when WinClosed/Esc already covers cleanup. @sudo-tee

@sudo-tee

sudo-tee commented Jul 8, 2026

Copy link
Copy Markdown
Owner Author

Not sure I follow here.

WinLeave is only on the inline input element.

I don;t think we support multi-selection yet in our imnplementation

@jensenojs

jensenojs commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator
iShot_2026-07-09_09 52 23

Sorry, I should have recorded a GIF, but when the input field is accidentally dismissed and then reopened, the original input is discarded. Perhaps this could be optimized? Multi-selection can be discussed later

@sudo-tee

sudo-tee commented Jul 9, 2026

Copy link
Copy Markdown
Owner Author

Oh I see. I will have a look.

Thanks

Save input buffer text on BufLeave and restore on next open, so partial input survives accidental focus changes.
@sudo-tee

sudo-tee commented Jul 9, 2026

Copy link
Copy Markdown
Owner Author

I pushed a fix for the accidental dismiss.

@sudo-tee
sudo-tee merged commit ba8885f into main Jul 9, 2026
10 checks passed
disrupted pushed a commit to disrupted/opencode-native.nvim that referenced this pull request Jul 23, 2026
* feat(ui): inline floating input for Other option

* feat(inline-input): preserve text across focus loss

Save input buffer text on BufLeave and restore on next open, so partial input survives accidental focus changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants